import request from '@/utils/request'

// export function getOrdersBySid(sid) {
//     return request({
//       url: '/order/orders/' + sid,
//       method: 'get'
//     })
// }

export function getOrders(data) {
    return request({
      url: '/order/orders',
      method: 'post',
      data
    })
}

export function addOrder(data) {
    return request({
        url: '/order/add' ,
        method: 'post',
        data
    })
}

export function updateOrder(data) {
    return request({
        url: '/order/update' ,
        method: 'put',
        data
    })
}

export function getRecords(oid){
    return request({
        url: '/order/records/' + oid,
        method: 'get'
    })
}

